angular.module('starter', ['ionic','mycontrollers'])

.run(function($ionicPlatform) {
  $ionicPlatform.ready(function() {
    // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
    // for form inputs)
    if(window.cordova && window.cordova.plugins.Keyboard) {
      cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
    }
    if(window.StatusBar) {
      StatusBar.styleDefault();
    }
  });
})

.config(function($stateProvider,$urlRouterProvider) {
  
  $stateProvider
  .state('welcome', {
        url: '/welcome',
        templateUrl: 'templates/welcome.html'
        
     })

  .state('login', {
        url: '/login',
        templateUrl: 'templates/login.html'
        
     })

  .state('register', {
        url: '/register',
        templateUrl: 'templates/register.html'
        
     })

  .state('goin', {
        url: '/goin',
        templateUrl: 'templates/goin.html',
         controller: 'ContentController'
        
     })

  .state('game', {
        url: '/game',
        templateUrl: 'templates/game.html'
     })


   $urlRouterProvider.otherwise('/welcome');
});
